#ifndef OCCURENCE_H
#define OCCURENCE_H
#include "Page.h"


class Occurrence{

      private:
            Page *site;	//Site the word was found on
            int count;	//Number of times the word was found

      public:
            Occurrence(Page &address);
            Occurrence(const Occurrence &other);
            Occurrence& operator =(const Occurrence &other);
            ~Occurrence();
            //TODO opperator = & Occurrence(Occurence &other)
            int increment();	//increments count;
            Page* getSite();	//Getters
            int getCount();
            int compare(Occurrence &other);
	     friend ostream &operator<<(ostream &stream, Occurrence *o);
};



#endif
